package com.wei.controller;

import com.wei.utils.R;
import org.springframework.web.bind.annotation.*;

/**
 * @author wjx
 * @ClassName LoginController
 * @description: TODO
 * @date 2022-11-27 23:24
 * @version: 1.0
 */
@RestController
@RequestMapping("eduservice/user")
public class LoginController {
    @PostMapping("/login")
    public R login() {
        return R.ok().data("token", "hahaha");
    }

    @GetMapping("/info")
    public R info() {
        return R.ok()
                .data("roles", "admin")
                .data("name", "zhangsan")
                .data("avatar", "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }
}
